package com.rightsidetech.trade.dtos.request;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.io.Serializable;

@Data
public class TdCommodityUpdateTrackNoReq implements Serializable {
    @ApiModelProperty(value = "id", required = true)
    @NotNull(message = "id不能为空")
    private Long id;

    @ApiModelProperty("物流单号")
    @NotBlank(message = "物流单号不能为空")
    @Length(max = 50,message = "物流单号长度过长")
    private String trackNo;
}
